package grgu.rud.glava1.b1;

import java.util.Scanner;

public class Chisla {

	public static void main(String[] args) {

		Scanner sc = new Scanner((System.in));
		System.out.print("Enter the amount of numbers: ");
		int n = sc.nextInt();
		int[] arr = new int[n];
		System.out.print("Enter the numbers ");
		for (int i = 0; i < arr.length; i++) {
			arr[i] = sc.nextInt();
		}
		System.out.print("Even numbers: ");
		for (int i = 0; i < arr.length; i++) {
			if (arr[i] % 2 == 0) {
				System.out.print(arr[i] + " ");
			}
		}
		System.out.print("\nOdd numbers: ");
		for (int i = 0; i < arr.length; i++) {
			if (arr[i] % 2 != 0) {
				System.out.print(arr[i] + " ");
			}
		}
	}
}
